/* 分类新闻列表页面样式 - 使用AppCan原生样式 */

/* 统一顶部样式 */
#Header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#Header .tx-c {
    text-align: center !important;
}

#Header h1 {
    text-align: center !important;
}

/* 内容区域 */
#ScrollContent {
    padding: 4.5em 0em 1em 0em;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

/* 分类描述区域增加上边距 */
.category-desc.uinn.umar-t {
    margin-top: 1.5em;
}

/* 分类描述区域 */
.category-desc {
    background: #fff;
    margin: 0 1em;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5em 1.8em;
}

/* 使用AppCan原生类替代现代CSS */
.category-icon {
    width: 3.5em;
    height: 3.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    margin-right: 1.5em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.3em;
}

.category-subtitle {
    color: #636e72;
    line-height: 1.3;
}

.news-count {
    font-size: 0.9em;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5em 1em;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-left: 1em;
}

/* 新闻列表样式 */
#news-listview {
    background: #fff;
    margin: 2em 1em 0 1em;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 新闻项样式 */
.appcan-listview .lis {
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1em 1.2em;
}

.appcan-listview .lis:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.appcan-listview .lis:active {
    background: #e9ecef;
    transform: translateX(0);
}

.appcan-listview .lis:last-child {
    border-bottom: none;
}

/* 新闻标题 */
.appcan-listview .lis .ulev-1 {
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    margin-bottom: 0.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻描述 */
.appcan-listview .lis .ulev--1 {
    color: #636e72;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8em;
}

/* 新闻元信息 - 使用AppCan原生布局 */
.news-meta {
    margin-top: 0.8em;
}

.news-time {
    color: #74b9ff;
    font-size: 0.8em;
    background: rgba(116, 185, 255, 0.1);
    padding: 0.2em 0.6em;
    border-radius: 8px;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.news-category {
    color: #00b894;
    font-size: 0.8em;
    background: rgba(0, 184, 148, 0.1);
    padding: 0.2em 0.6em;
    border-radius: 8px;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.news-comments {
    color: #fdcb6e;
    font-size: 0.8em;
    background: rgba(253, 203, 110, 0.1);
    padding: 0.2em 0.6em;
    border-radius: 8px;
    border: 1px solid rgba(253, 203, 110, 0.2);
}

/* 新闻图片 */
.news-image {
    width: 4em;
    height: 3em;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 加载更多 */
.load-more {
    background: rgba(255,255,255,0.7);
    margin: 1em;
    border-radius: 12px;
    padding: 1em;
    color: #636e72;
    font-size: 0.9em;
}

/* 导航按钮 */
.nav-btn {
    padding: 0.8em;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3em 2em;
    color: #636e72;
}

.empty-icon {
    font-size: 3em;
    color: #ddd;
    margin-bottom: 1em;
}

.empty-text {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.empty-desc {
    font-size: 0.9em;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .category-desc {
        margin: 0 0.8em;
        padding: 1em;
    }
    
    .category-icon {
        width: 3em;
        height: 3em;
        margin-right: 0.8em;
    }
    
    .category-name {
        font-size: 1.2em;
    }
    
    #news-listview {
        margin: 0 0.8em;
    }
    
    .appcan-listview .lis {
        padding: 0.8em 1em;
    }
    
    .news-meta {
        /* 使用AppCan原生间距 */
    }
    
    .news-time, .news-category, .news-comments {
        font-size: 0.75em;
        padding: 0.15em 0.5em;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-desc {
    animation: fadeInUp 0.5s ease;
}

#news-listview {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.appcan-listview .lis {
    animation: fadeInUp 0.4s ease;
}

.appcan-listview .lis:nth-child(1) { animation-delay: 0.1s; }
.appcan-listview .lis:nth-child(2) { animation-delay: 0.2s; }
.appcan-listview .lis:nth-child(3) { animation-delay: 0.3s; }
.appcan-listview .lis:nth-child(4) { animation-delay: 0.4s; }
.appcan-listview .lis:nth-child(5) { animation-delay: 0.5s; } 